//
//  XMLParser.h
//  rss_reader
//
//  Created by Oleg Soldatoff on 4/11/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface XMLParser : NSObject <NSXMLParserDelegate> {
  
  
}
@property (assign, nonatomic) BOOL inItem;
@property (strong, nonatomic) NSMutableArray *arrayWithItems;
@property (strong, nonatomic) NSMutableArray *arrayWithFeeds;
@property (strong, nonatomic) NSMutableString *itemTitle;
@property (strong, nonatomic) NSMutableString *itemDescription;
@property (strong, nonatomic) NSString *itemDate;
@property (strong, nonatomic) NSMutableString *itemUrl;
@property (strong, nonatomic) NSMutableString *currentProperty;

- (NSArray *)parseRSS:(NSData *)data parseError:(NSError **)err;

- (NSDictionary *) dictionaryWithItem;

+ (NSArray*) arrayWithItems:(NSData *)data;
+ (NSArray*) arrayWithFeeds:(NSData *)data;


@end
